package com.br3akr.rollerTransferProtocol.transferProtocol;

import java.io.Serializable;

public class FromServer implements Serializable {
	private static final long serialVersionUID = 1L;
	private String updateMessage;
	private PlayerState state;
	private PlayerEntry[] playerList;
	private int userId;
	
	public FromServer(String message, PlayerState state, 
			PlayerEntry[] playerList, int userId) {
		this.updateMessage = message;
		this.state = state;
		this.userId = userId;
		this.playerList = playerList;
	}
	
	public String getUpdateMessage() {
		return updateMessage;
	}
	
	public PlayerState getPlayerState() {
		return state;
	}
	
	public PlayerEntry[] getPlayers() {
		return playerList;
	}
	
	public int getUserId() {
		return userId;		
	}
}